package com.jiutianniao.p2p.acctrans.core.util;

import com.jiutianniao.p2p.acctrans.core.dal.model.AccountDO;
import com.jiutianniao.p2p.trans.client.model.AccountVO;

public class ConverUtil {

	public static AccountVO converAccountDO2VO(AccountDO accountDO){
		
		AccountVO accountVO = new AccountVO();
		
		accountVO.setAccountNo(accountDO.getAccountNo());
		accountVO.setAccountTitle(accountDO.getAccountTitle());
		accountVO.setAccountType(accountDO.getAccountType());
		accountVO.setBalance(accountDO.getBalance());
		accountVO.setFreezeAmount(accountDO.getFreezeAmount());
		accountVO.setBalanceDirection(accountDO.getBalanceDirection());
		accountVO.initCanUserBalance();
		return accountVO;
	}
	

}
